Trò chơi Tic-Tac-Toe, game đánh caro full source code
53.478 lượt xem;
1 namespace Assets.Scripts
2 {
3 public class Player
4 {
5 public string Name { get; set; }
6
7 public int Score { get; set; }
8
9 public Seed Type { get; set; }
10
11 public Player(string name, int score, Seed type)
12 {
13 Name = name;
14 Score = score;
15 Type = type;
16 }
17
18 public override string ToString()
19 {
20 return Name + ": " + Score;
21 }
22 }
23 }
2 {
3 public class Player
4 {
5 public string Name { get; set; }
6
7 public int Score { get; set; }
8
9 public Seed Type { get; set; }
10
11 public Player(string name, int score, Seed type)
12 {
13 Name = name;
14 Score = score;
15 Type = type;
16 }
17
18 public override string ToString()
19 {
20 return Name + ": " + Score;
21 }
22 }
23 }